/** 
 * Project Name:tinysql 
 * File Name:LikeType.java 
 * Package Name:com.wdy.golden.tinysql.enmus 
 * Date:2021年2月19日下午5:32:04 
 * 
*/  
package com.wdy.golden.tinysql.enmus;


/** 
 * ClassName:LikeType <br/> 
 * Function: TODO ADD FUNCTION. <br/> 
 * Reason:   TODO ADD REASON. <br/> 
 * Date:     2021年2月19日 下午5:32:04 <br/> 
 * @author   DongYe_Wu 
 * @version
 * @see       
 */
public enum LikeType {

	BOTHLIKE("bothLike", 1),LEFTLIKE("leftLike",2),RIGHTLIKE("rightLike",3);

	public String name;
	public int index;

	private LikeType(String name, int index) {
		this.name = name;
		this.index = index;
	}

	public static String getName(int index) {
		for (SqlSeparateType c : SqlSeparateType.values()) {
			if (c.getIndex() == index) {
				return c.name;
			}
		}
		return null;
	}
	
	public String getName() {
		return name;
	}

	public int getIndex() {
		return index;
	}

}
